package com.x.erp.model;

import java.math.BigDecimal;
import java.util.Date;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;
import org.springframework.format.annotation.DateTimeFormat;

@MappingTable(tableName = "ERP_GATE_CAR")
public class GateCar extends BaseObject {

	private static final long serialVersionUID = -8299585155158290302L;

	@MappingColumn(columnName = "CAR_ID", columnPk = true, columnLength = 32)
	private String carId;// 道闸出入车辆ID

	@MappingColumn(columnName = "CAR_STATE")
	private Integer carState;// 道闸车辆出入闸状态（1：入、2：出）

	@MappingColumn(columnName = "CAR_IMAGE")
	private String carImage;// 道闸车辆出入图片

	@MappingColumn(columnName = "CAR_FEE")
	private BigDecimal carFee;// 停车费用

	@MappingColumn(columnName = "CAR_CARD")
	private String carCard;// 停车卡号

	@MappingColumn(columnName = "CAR_RFID")
	private String carRfid;// 车辆RFID

	@MappingColumn(columnName = "GATE_CODE")
	private String gateCode;// 道闸Code

	@MappingColumn(columnName = "MARKET_ID")
	private String marketId;// 市场ID

	@MappingTable(tableName = "ERP_MARKET")
	private Market market;// 市场

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@MappingColumn(columnName = "CAR_CREATE_TIME")
	private Date carCreateTime;// 创建时间

	@MappingColumn(columnName = "CAR_UPDATE_TIME")
	private Date carUpdateTime;// 修改时间

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date endTime;// 截止时间

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date startTime;// 开始时间

	public String getCarId() {
		return carId;
	}

	public void setCarId(String carId) {
		this.carId = carId;
	}

	public Integer getCarState() {
		return carState;
	}

	public void setCarState(Integer carState) {
		this.carState = carState;
	}

	public String getCarImage() {
		return carImage;
	}

	public void setCarImage(String carImage) {
		this.carImage = carImage;
	}

	public BigDecimal getCarFee() {
		return carFee;
	}

	public void setCarFee(BigDecimal carFee) {
		this.carFee = carFee;
	}

	public String getCarCard() {
		return carCard;
	}

	public void setCarCard(String carCard) {
		this.carCard = carCard;
	}

	public String getCarRfid() {
		return carRfid;
	}

	public void setCarRfid(String carRfid) {
		this.carRfid = carRfid;
	}

	public String getGateCode() {
		return gateCode;
	}

	public void setGateCode(String gateCode) {
		this.gateCode = gateCode;
	}

	public String getMarketId() {
		return marketId;
	}

	public void setMarketId(String marketId) {
		this.marketId = marketId;
	}

	public Market getMarket() {
		return market;
	}

	public void setMarket(Market market) {
		this.market = market;
	}

	public Date getCarCreateTime() {
		return carCreateTime;
	}

	public void setCarCreateTime(Date carCreateTime) {
		this.carCreateTime = carCreateTime;
	}

	public Date getCarUpdateTime() {
		return carUpdateTime;
	}

	public void setCarUpdateTime(Date carUpdateTime) {
		this.carUpdateTime = carUpdateTime;
	}

	public Date getEndTime() { return endTime; }

	public void setEndTime(Date endTime) { this.endTime = endTime; }

	public Date getStartTime() { return startTime; }

	public void setStartTime(Date startTime) { this.startTime = startTime; }
}
